home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / crossedit / Imakefile < prev    next >
Makefile  |  1996-07-24  |  3KB  |  131 lines

  1. /*
  2.  * $Id: Imakefile,v 1.3 1993/07/28 19:13:41 hevi Exp hevi $
  3.  *
  4.  * CrossEdit - Game world editor
  5.  * Copyright (C) 1993 Petri Heinila & Jarkko Sonninen
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  * Authors can be connected by email from Jarkko.Sonninen@lut.fi &
  22.  * Petri.Heinila@lut.fi
  23.  */
  24.  
  25. #include "../config/crossfire.tmpl"
  26.  
  27. /* subdirectories */
  28. #define IHaveSubdirs 
  29. SUBDIRS = bitmaps doc Cnv include
  30.  
  31.  
  32. LOCAL_LIBRARIES =  $(DLSYM) -L../common -lcross -L./Cnv -lCnv $(XPM_LIBS) \
  33.     XawClientLibs $(MALLOC_LIBS)
  34. EXTRA_INCLUDES  = -I. -I../include -I./include -I./Cnv $(RPLAY_INCDIR)
  35. DEPENDLIB = ../common/libcross.a ./Cnv/libCnv.a
  36.  
  37.  
  38. /* program */
  39. PROG = crossedit
  40.  
  41. /* files */
  42. SRCS = \
  43.     $(PROG).c \
  44.     Attr.c \
  45.     CrFace.c \
  46.     CrEdit.c \
  47.     CrList.c \
  48.     CrUtil.c \
  49.     Edit.c \
  50.     App.c \
  51.     Bitmaps.c \
  52.     Str.c 
  53.  
  54. HDRS = \
  55.     CrFace.h \
  56.     CrFaceP.h \
  57.     CrEdit.h \
  58.     CrEditP.h \
  59.     CrList.h \
  60.     CrListP.h \
  61.     CrUtil.h \
  62.     App.h \
  63.     Edit.h \
  64.     Bitmaps.h \
  65.     Str.h \
  66.     Attr.h \
  67.     Crossedit.ad.h \
  68.     Defines.h 
  69.  
  70. OBJS = \
  71.     $(PROG).o \
  72.     Attr.o \
  73.     CrFace.o \
  74.     CrEdit.o \
  75.     CrList.o \
  76.     CrUtil.o \
  77.     Edit.o \
  78.     App.o \
  79.     Bitmaps.o \
  80.     Str.o 
  81.  
  82. FILES    =    README        TODO        Imakefile \
  83.         Crossedit.ad    Crossedit.ad.h    config.h
  84.  
  85. /***************************************************************************/
  86.  
  87. MakeSubdirs(bitmaps doc Cnv include)
  88.  
  89. AllTarget($(PROG))
  90.  
  91. MakeArchive(bitmaps doc Cnv include)
  92.  
  93. InsertArchive($(SRCS) $(HDRS) $(FILES),crossedit)
  94.  
  95. depend:: Crossedit.ad.h
  96.  
  97. NormalProgramTarget($(PROG),$(OBJS),$(DEPENDLIB),$(LOCAL_LIBRARIES),)
  98.  
  99. DependTarget()
  100.  
  101. DependSubdirs(Cnv)
  102.  
  103. /* resources */
  104. crossedit.c: Crossedit.ad.h
  105. Crossedit.ad.h: Crossedit.ad
  106.     -../utils/ad2c.script Crossedit.ad > Crossedit.ad.h
  107.  
  108. /* indent */
  109. indent: $(SRCS)
  110.     for a in $(SRCS) $(HDRS);do \
  111.     indent $$a -bap -bacc -nbad -nbbb -nbc -br -bs -ncdb -ce -neei \
  112.         -nfc1 -i4 -nip -nlp -npro -pcs -npsl -nsc -nsob \
  113.         -c33 -cd33 -ci2 -cli0.0 -d0 -di4 -l78 -lc78;\
  114.     done
  115.  
  116. /* prototypes 8/
  117. proto:
  118.     cextract +Ap -o proto.h -I$(INCROOT) $(EXTRA_INCLUDES) $(SRCS)
  119.     chmod 664 proto.h
  120.  
  121.  
  122. /* install */
  123. #if ProjectX < 5
  124. install::
  125.     @echo Can not install $(PROG) due to too low X-release.
  126. #else
  127. InstallProgram($(PROG),$(C_BINDIR))
  128. #endif
  129.  
  130. /* END OF IMAKEFILE */
  131.